
<style>
	.appmsg_content {
		padding: 5px 10px;
		position: relative;
	}
	.appmsg_content .cover{height:auto;}
	.appmsg_content .cover img{    margin: 5px 0px;}
	#owner{display:flex;}
	#owner-avatar{width:20%;}
	#owner-des{flex:1;padding-left:10px;}
</style>

{{if $owner}}
<div id="owner">
	<div id="owner-avatar"><img src="{{$owner['image']}}"></div>
	<div id="owner-des">
		<h2>{{$owner['username']}}</h2>
		<p>{{if $owner['description']}}{{$owner['description']}}{{else}}Ta还没有留下描述{{/if}}</p>
	</div>
</div>
{{/if}}
<div class="clearfix"></div>

<div class="row">
	{{loop $datalist $item}}
	<div class="col-md-4">
		<div class="appmsg">
			<div class="appmsg_content">
				<h4><a href="{{$this->Html->url('/wx_activities/view/'.$item['WxActivity']['id'])}}" target="_blank">{{$item['WxActivity']['name']}}&nbsp;</a></h4>
				{{if $item['WxActivity']['coverimg']}}
				<div class="cover">{{$this->Html->image($item['WxActivity']['coverimg'])}}</div>
				{{/if}}
				<p>{{usubstr($item['WxActivity']['summary'],0,60,'...')}}</p>
			</div>

		</div>
	</div>
	{{/loop}}
</div>

{{if $is_mobile}}
<div id="cart1" class="cart-concern-btm-fixed">
	<div class="concern-cart">
		<a href="/wx_activities/lists?model=Baoming&status=1&creator={{$owner['id']}}" class="dong-dong-icn J_ping">
			<i class="fa fa-home"></i>
			<span class="focus-info">首页</span>
		</a>
		<a href="/users/index" class="love-heart-icn J_ping" >
			<i class="fa fa-user"></i>
			<span class="focus-info"> 我的  </span>
		</a>

	</div>
	<div class="action-list">
		<a href="/wx_activities/add?model=Baoming" class="red-color baoming-btn directorder" id="directorderBtm">
			我也要分享
		</a>
	</div>
</div>
{{/if}}
